﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnChao.WPF.Controls.TextBox
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window, INotifyPropertyChanged
    {


        private double _DecimalNum = 88.8;
        /// <summary>
        /// 正小数
        /// </summary>
        public double  DecimalNum { get { return _DecimalNum; } set { if (_DecimalNum == value) return; _DecimalNum = value; this.OnPropertyChanged(nameof(DecimalNum)); } }


        private double _SignDecimalNum = -88.8;
        /// <summary>
        /// 带符号小数
        /// </summary>
        public double SignDecimalNum { get { return _SignDecimalNum; } set { if (_SignDecimalNum == value) return; _SignDecimalNum = value; this.OnPropertyChanged(nameof(SignDecimalNum)); } }


        private string _RegexStr="HelloWorld";
        /// <summary>
        /// 普通串
        /// </summary>
        public string RegexStr { get { return _RegexStr; } set { if (_RegexStr == value) return; _RegexStr = value; this.OnPropertyChanged(nameof(RegexStr)); } }


        public MainWindow()
        {
            InitializeComponent();

            
        }

        
        

        public void Test()
        {
        }


        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

    
}
